package one_05_method;

public class demo06 {
    public static void main(String[] args) {
        demo06 de06 = new demo06();
        System.out.println(de06.test(5));

    }
    public int test(int n){
        if (1==n){
            return 1;
        }else {
            return n*test(n-1);
        }
    }

}
